import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state:{
        currentAddress:'',
    },
    mutations:{
        setPath(state){
            state.currentAddress=localStorage.getItem("currentAddress")
        },
        layout(){
            localStorage.removeItem("user");
        },

    }
})

export default store;